package com.book.service.impl;

import com.book.mapper.BookUserAddressMapper;
import com.book.service.BookUserAddressService;
import com.book.vo.AddressVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author SuperYu  2024/8/5
 */
@Service
public class BookUserAddressServiceImpl implements BookUserAddressService {

    @Resource
    BookUserAddressMapper bookUserAddressMapper;

    @Override
    public List<AddressVo> findAddressByUserId(int id) {

        return bookUserAddressMapper.selectAddressByUserId(id);
    }
}
